var redis = require('redis');
var config = require('../config/config.js')();
var debug = require('debug')('redis');

var redisCli = redis.createClient(config.redis.port, config.redis.host);
redisCli.on('connect', function() {
	debug('redis connected');
});

function saveUserId(userId){
	redisCli.set()
}

module.exports = exports = redisCli;

// save and get
// redisCli.set(key,value, function(err,reply){});
// redisCli.get(key,value, function(err,reply){});